#########################################################################
# File Name: mkboot.sh
# Author: zewen
# mail: zewen.zhu@telink.com
# Created Time: Wed 21 Jun 2017 10:06:03 AM CST
#########################################################################
#!/bin/bash

#1. rm file 
rm build.LibreELEC-Khadas_Vim.aarch64-7.0.2/.stamps/linux/build_target

#2.make boot.img
PROJECT=Khadas_Vim ARCH=aarch64 ./scripts/build  linux  | tee k.log

#3.make system.img
PROJECT=Khadas_Vim ARCH=aarch64 make image -j8 | tee b.log

#4.compile log
echo -e "\033[32m kernel compile log is in k.log \033[0m"
echo -e "\033[32m system compile log is in b.log \033[0m"
echo -e "\033[32m ########## make kernel and system image successfully!!! ########## \033[0m"
